package com.glsc.ngateway.common.xir.domain;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Entity
@Data
@Table(name = "TSYS_USER", schema = "XIR_APP")
public class TsysUser {
    @Id
    @Column(name = "U_ID")
    private String uId;

    @Column(name = "U_NAME")
    private String uName;

    @Column(name = "U_PWD")
    private String uPwd;

    @Column(name = "U_STATE")
    private String uState;

    @Column(name = "U_CREATDATE")
    @Temporal(TemporalType.DATE)
    private Date uCreatdate;

    @Column(name = "U_CLOSEDATE")
    @Temporal(TemporalType.DATE)
    private Date uClosedate;

    @Column(name = "U_PWDCOUNT")
    private Long uPwdcount;

    @Column(name = "U_PWDATE")
    @Temporal(TemporalType.DATE)
    private Date uPwdate;

    @Column(name = "U_REMARK")
    private String uRemark;

    @Column(name = "U_EMAIL")
    private String uEmail;

    @Column(name = "U_BANKTRADER")
    private String uBanktrader;

    @Column(name = "U_FREQ")
    private String uFreq;

    @Column(name = "U_IP")
    private String uIp;

    @Column(name = "U_LASTLOGINTIME", columnDefinition = "DATE DEFAULT sysdate")
    @Temporal(TemporalType.DATE)
    private Date uLastlogintime;

    @Column(name = "LOGON_ERR_TIMES", columnDefinition = "NUMBER(38,0) DEFAULT 0")
    private Long logonErrTimes;

    @Column(name = "U_IP2", columnDefinition = "VARCHAR2(200) DEFAULT ''")
    private String uIp2;

    @Column(name = "U_DEPARTMENTNAME")
    private String uDepartmentname;

    @Column(name = "U_ALIASNAME")
    private String uAliasname;

    @Column(name = "DEPT_RIGHT")
    private String deptRight;

    @Column(name = "U_TELEPHONE")
    private String uTelephone;

    @Column(name = "U_MAC")
    private String uMac;

    @Column(name = "U_SETTLETYPE")
    private String uSettlementype;

    @Column(name = "U_TREEPKGDEFAULT")
    private Long uTreePkgdefault;
}